/**
 * @author Bry
 * @param {type} $
 * @returns {undefined}
 */
(function($){
	$.fn.spanify = function(tag,className) {
		var words = this.html().split(' ');	
		var newWords = '';
		for(i = 0; i < words.length; i++) {
			if(words[i] != '' && words[i] != '\n')
			newWords+='<' + tag + ' class="'+ className +'">' + words[i] + '</' + tag + '> ';
		}
		this.html(newWords);
		return this;
	}
}(jQuery));